package com.linkage.repository.order;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.linkage.pojo.order.OrderDetail;

/**
 * .
 * 
 * @author: 王权
 */

@Repository
public interface OrderDetailRepository {
	
	public void add(OrderDetail detail);//添加一条商品详情
	
	public void delete(OrderDetail detail);//删除一条商品详情
	
	public void update(OrderDetail detail);//修改一条商品详情
	
	public OrderDetail loadOne(@Param("orderDetailId") Integer detailId);//查看一条商品详情
	
	public List<OrderDetail> loadByID(@Param("orderId") Integer orderId );//查看一条订单中所有商品详情

	public void deleteByID(@Param("orderId") Integer orderId );//删除一条订单所有商品详情
}
